import request from '@/utils/processRequest';

// 获取表头
export function getHeader(data) {
  return request({
    url: '/xProduce/header',
    method: 'post',
    data
  });
}
// 获取数据
export function getData(data) {
  return request({
    url: '/xProduce/pubBudgetTree',
    method: 'post',
    data
  });
}

// 批量保存
export function batchAudit(data) {
  return request({
    url: '/xProduce/preservation',
    method: 'post',
    data
  });
}

// 查看获取的状态
export function showStatus(data) {
  return request({
    url: 'pubBudget/showSetId',
    method: 'post',
    data
  });
}

// 上报报表
export function uploadTables(data) {
  return request({
    url: 'pubBudget/editSetId',
    method: 'post',
    data
  });
}

// 查看修改记录

export function showPubLog(data) {
  return request({
    url: 'xProduce/showPubLog',
    method: 'post',
    data
  });
}

// 下载
export function exportExcel(data) {
  return request({
    url: '/xProduce/exportExcel',
    method: 'post',
    data,
    responseType: 'blob' // 返回格式，默认json，可选arraybuffer、blob、document、json、text、stream
  });
}

